package spider1.test;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import com.sleepycat.je.Database;

import billing.system.db.berkeley.BDB;
import billing.system.http.HttpUtils;

public class A {

	public static void main(String[] args) {
//		String url = "http://v.hao123.com/movie/index";
////		String host = "hao123.com";
//		BDB db = BDB.getBDB("urlpool.text");
//		Document doc = Jsoup.parse(HttpUtils.get(url),url);
//		Elements elementLst = doc.select("a[href]");
//		for (Element element : elementLst) {
//			String s = element.attr("abs:href");
//			String text = element.text();
//			db.put(s, text);
//		}
		BDB bdb = BDB.getBDB("urlpool.text");
		Database db = bdb.getDataBase();
	}
}
